#include <QGraphicsItem>
#include <QPainter>
#include <QKeyEvent>

class CDiscItem : public QGraphicsItem
{
public:
	CDiscItem();
	QRectF boundingRect() const;
	void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

private:
	QPointF customRotate(QPointF point, qreal from_angle, qreal rotate);
	QRectF calWidthAndHeight() const;
};